﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class tpView : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void Button1_Click(object sender, EventArgs e)
    {
        SqlDataSourcetpcb.Insert();
    }
    protected void Button2_Click(object sender, EventArgs e)
    {
        GridView1.Visible = true;
    }
    protected void SqlDataSourcetpcb_Inserting(object sender, SqlDataSourceCommandEventArgs e)
    {
        e.Command.Parameters[0].Value = RadioButtonList1.SelectedValue.ToString(); e.Command.Parameters[1].Value = Request.QueryString["tpid"]; e.Command.Parameters[2].Value = "1"; e.Command.Parameters[3].Value = DateTime.Now.ToString();
    }
}